/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pluginMenu;

import application.IPlugin;
import application.ViewManager;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JMenu;

/**
 *
 * @author mazid
 */
public class Menu implements IPlugin{
    private JMenu edition, fonction;
    private List<JMenu> listMenus;
    
    @Override
    public String getName() {
        return "Menu";
    }
    
    
    private List<JMenu> listMenu(){
        listMenus= new ArrayList<>();
        edition = MenuEdition.getInstance().addMenuEdition();
        fonction = MenuFonction.getInstance().addMenuFonction();
        listMenus.add(edition);
        listMenus.add(fonction);
        
        return listMenus;
    }

    

    @Override
    public void addTable() {
        
    }

    

    @Override
    public JMenu getMenu() {
        return new MenuEdition().addMenuEdition();
    }

   
    
}
